#include<stdio.h>
int main()
{
    int* twoSum(int* nums, int numsSize, int target, int* returnSize);
    int i,n,f;
    int b[n];
    for(i=0;i<n;i++)
    {
        scanf("%d\n",&b[i]);
    }
    int target;
    scanf("%d\n%d\n",&target,&f);
    for(i=0;i<f;i++)
    {
        printf("%d\n",twoSum(b, n, target, f));
    }
}
int* twoSum(int* nums, int numsSize, int target, int* returnSize){
    int i,j,sum=0;
    int *a;
    a=(int*)malloc(2*sizeof(int));
    a[0]=nums[0];
    for(i=0;i<numsSize;i++)
       {for(j=i+1;j<numsSize;j++)
        {
            if (nums[j]+nums[i]==target)
            {
                a[0]=i;
                a[1]=j;
                * returnSize=2;
                return a;
            }
        }
        }
    return 0;
}